MCIsPlayerEvent
TheMCIsPlayerEvent
function handles all events for a movie controller. Your application should call this function in its main event loop. CallMCIsPlayerEvent
for each active movie controller until the event is handled.This function returns a long integer indicating whether the movie controller component handled the event. The component sets this long integer to 1 if it handled the event. Your application should then skip the rest of its event loop and wait for the next event. The return value is 0 otherwise. Your application must then handle the event as part of its normal event processing.
The movie controller component does everything necessary to support the movie controller and its associated movie. For example, the component calls the Movie Toolbox's
MoviesTask
function for each movie. The movie controller component also handles suspend and resume events. It treats suspend events as deactivate requests and resume events as activate requests.You can provide an action filter function that is called by the movie controller component. See "Application-Defined Function," which begins on page 2-61, for details. The component calls your filter function after it decides to process a particular action, but before it actually does so. In this manner, your application can perform custom action processing for a movie controller. Set your action filter function with the
MCSetActionFilterWithRefCon
function, described on page 2-47.
pascal ComponentResult MCIsPlayerEvent (MovieController mc, const EventRecord *e);
mc
- Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager'sOpenComponent
orOpenDefaultComponent
function, or from theNewMovieController
function (described on page 2-28).e
- Points to the current event structure.
DESCRIPTION
TheMCIsPlayerEvent
function returns a long integer indicating whether it handled the event. If the movie controller component handled the event, this function sets the returned value to 1. Your application should then skip the rest of its event loop and wait for the next event. If the component did not handle the event, theMCIsPlayerEvent
function returns a value of 0. Your application must then handle the event.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help